function check_article_form(form)
{
    var title = $(form).find('input[name = title]').val();
    var text  = $(form).find('textarea[name = text]').val();
    
    if(title && text)
        return true;
    
    $('#article-form-error').dialog('open');
    
    return false;
}